import wxHttp from "@/utils/wxRequest";

export function qywxContactTagList(type) {
  return wxHttp.get("/wxqy/contact/tag/list", {type: type})
}

export function addQywxContactTag(params) {
  return wxHttp.post("/wxqy/contact/tag/add", params)
}

/**
 * 新增/编辑 分组
 */
export function addQywxContactTagGroup(params) {
  return wxHttp.post("/wxqy/contact/tag/group/add", params)
}

export function deleteQywxContactTag(type, id) {
  return wxHttp.post('/wxqy/contact/tag/delete', {type, id})
}

export function deleteQywxContactGroupTag(type, id) {
  return wxHttp.post('/wxqy/contact/tag/group/delete', {type, id})
}

export function bindFollowerTags(params) {
  return wxHttp.post('/wxqy/customer/bind-tags', Object.assign(params, {type: 1}))
}

export function editFollowerRemark(params) {
  return wxHttp.post('/wxqy/customer/edit/remark', params)
}
